<!--菜单 start-->
<?php $this->load->view('defaults/common/left');?>
<!--菜单 end-->
<div id="content">
    <div class="page-header">
        <div class="container-fluid">
          <h1><?=lang('menu_yhgl')?></h1>
          <?=$this->breadcrumb->generateHTML();?>
        </div>
    </div>
    <div class="container-fluid">
        <div class="panel panel-default">
          <div class="panel-heading">
            <h3 class="panel-title"><i class="fa fa-list"></i>散客支付记录</h3>
          </div>
          <div class="panel-body">
            <div class="well" style="padding:0 19px;">
              <div class="row">
                <form action="<?= blang_url('users/member/paymentrecord/') ?>" method="post" enctype="multipart/form-data" name="searchform">
                    <div class="col-sm-4">
                        <div class="form-group">
                            <label class="control-label">客户名/订单号/交易号</label>
                            <input class="form-control" type="text" size="60" name="keyword" value="<?= $searchData['keyword'] ?>" placeholder="客户名/订单号/交易号">
                        </div>
                    </div>
                    <div class="col-sm-8">
                        <div class="form-group" style="padding-top:37px;">
                            <input class="btn btn-primary" type="submit" value=" 查 询 ">
                        </div>
                    </div>
                </form>
              </div>
            </div>

            <div class="table-responsive">
                <table class="table table-bordered table-hover oms-table">
                  <thead>
                    <tr>
                        <th class="text-left">id</th>
                        <th class="text-left">订单单号</th>
                        <th class="text-left">交易号</th>
                        <th class="text-left">金额</th>
                        <th class="text-left">支付方式</th>
                        <th class="text-right">客户名</th>
                        <th class="text-right">币种</th>
                        <th class="text-right">支付时间</th>
                        <th class="text-right">来源</th>
                    </tr>
                  </thead>
                  <tbody>
                    <?php if($depositrecordlist): foreach ($depositrecordlist as $key=>$v):?>
                    <tr>
                        <td class="text-left"><?= $v['id'] ?></td>
                        <td class="text-left"><?= $v['orderId'] ?></td>
                        <td class="text-left"><?= $v['transactionId'] ?></td>
                        <td class="text-left"><?= $v['money'] ?></td>
                        <td class="text-left"><?= $v['payType'] ?></td>
                        <td class="text-right"><?= $v['account'] ?></td>

                        <td class="text-right"><?= $v['currency'] ?></td>
                        <td class="text-right"><?= date('Y-m-d H:i:s', $v['time']) ?></td>

                        <td class="text-right" dt-type="<?= $v['sourceType'] ?>">
                            <?= $v['sourceSite'] ?>
                            <?php echo($v['sourceType'] == 2 ? '[接口]' : '[导入]'); ?>
                        </td>
                    </tr>
                    <?php endforeach; else:?>
                        <tr><td colspan="9" class="emptyNumber"><?=lang('public_mygdsj')?>....</td></tr>
                    <?php endif; ?>
                </tbody>
                </table>
                <?php if($pageShow):?>
                <div class="page">
                    <?=$pageShow?>
                </div>
                <?php endif;?>
            </div>
          </div>
        </div>
    </div>
  
</div>


